A New Method for Functional Arrays

نویسندگان

  • Melissa E. O'Neill
  • F. Warren Burton
چکیده

Arrays are probably the most widely used data structure in imperative programming languages, yet functional languages typically only support arrays in a limited manner, or prohibit them entirely. This is not too surprising, since most other mutable data structures, such as trees, have elegant immutable analogues in the functional world, whereas arrays do not. Previous attempts at addressing the problem have suffered from one of three weaknesses, either that they don’t support arrays as a persistent data structure (unlike the functional analogues of other imperative data structures), or that the range of operations is too restrictive to support some common array algorithms efficiently, or that they have performance problems. Our technique provides arrays as a true functional analogue of imperative arrays with the properties that functional programmers have come to expect from their data structures. To efficiently support array algorithms from the imperative world, we provide O(1) operations for single-threaded array use. Fully persistent array use can also be provided at O(1) amortized cost, provided that the algorithm satisfies a simple requirement as to uniformity of access. For those algorithms which do not access the array uniformly or single-threadedly, array reads or updates take at most O(log n) amortized time, where n is the size of the array. Experimental results indicate that the overheads of our technique are acceptable in practice for many applications.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Development a New Technique Based on Least Square Method to Synthesize the Pattern of Equally Space Linear Arrays

Using the sampled data of a desired pattern is a common technique in pattern synthesizing of array factor (AF) of antenna arrays. Based on the obtained data matrix, Least Square Method (LSM) is used to calculate the exciting coefficient of array elements. The most important parameter, which involves the accuracy and complexity of calculation, is the sampling rate of the desired pattern. Classic...

متن کامل

Normalization of qPCR array data: a novel method based on procrustes superimposition

MicroRNAs (miRNAs) are short, endogenous non-coding RNAs that function as guide molecules to regulate transcription of their target messenger RNAs. Several methods including low-density qPCR arrays are being increasingly used to profile the expression of these molecules in a variety of different biological conditions. Reliable analysis of expression profiles demands removal of technical variati...

متن کامل

Functionalized Carbon Nanotubes Produced by APCVD using Camphor

A simple chemical vapor deposition technique at atmospheric pressure (APCVD) is adopted to synthesize the aligned arrays of functionalized multi-walled carbon nanotubes (AMWCNTs) without using any carrier gas, at 230◦C, 750◦C and 850 ◦C. Camphor (C10H16O) is used as carbon source because this botanical hydrocarbon is chip and abundant which convert the CVD technique to a green method for produc...

متن کامل

برآورد اقتصادی نصب آرایه‌های خورشیدی در واحد سطح نیروگاه‌های فتوولتائیک با استفاده از پیکربندی مجدد آرایه‌ها

Determining row spacing between PV arrays is one of the important issues in designing PV Plants; Increasing this space results in an increase in the cost of ground, as well as the PV plant output power per area and its decreasing leads into a mutual shading and the reduction of PV plant output power. That is while the tendency towards more output power production in limited areas such as roof b...

متن کامل

Amorphous Silicon Flat Panel Imagers for Medical Application

A new gamma camera based on hydrogenated amorphous silicon (a-Si:H) pixel arrays to be used in nuclear medicine is introduced. Various performance characteristics of a-Si:H imagers are reviewed and compared with those of currently used equipment. An important component in the a-Si:H imager is the scintillator screen. A new approach for fabrication of high resolution CsI(Tl) scintillator layers,...

متن کامل

A new method for the generalized Hyers-Ulam-Rassias stability

We propose a new method, called the textit{the weighted space method}, for the study of the generalized Hyers-Ulam-Rassias stability. We use this method for a nonlinear functional equation, for Volterra and Fredholm integral operators.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. Funct. Program.

دوره 7  شماره 

صفحات  -

تاریخ انتشار 1997